<h1><u>Institution Selection</u></h1><br/>
<?php
if (count($courseIns_list) == 0) {
    echo "<h1 align=center>You have not made any course selection</h1>";
} else {
?>
    <div class="full_width" style="margin-top: 1em;">
        <form id="insForm" name="insForm" action="<?php echo site_url('institution_selection/selInstitution'); ?>" method="post">
            <input type="hidden" id="url4" value="<?php echo site_url('institution_selection/selInstitution'); ?>" >
            <table style="font-size:12px" cellpadding="0" cellspacing="0" border="0" class="display" id="dataSortTable">
                <thead>
                    <tr>
                        <th></th>
                        <th>Institution Name</th>
                        <th>Type</th>
                        <th>Address</th>
                        <th>Country</th>
                        <th>Description</th>
                        <th>Course Available</th>
                    </tr>
                </thead>
                <tbody>
                <?php foreach ($courseIns_list as $row) {
 ?>
                    <tr class="odd gradeA">
                        <td width="20px"><input type="checkbox" name="institution_id[]" id="course_id" value="<?php echo $row->institution_id; ?>"> </td>
                        <td id="insName"><?php echo $row->institution_name; ?></td>
                        <td><?php echo $row->institution_type_desc; ?></td>
                        <td><?php echo $row->institution_address; ?></td>
                        <td><?php echo $row->country_name; ?></td>
                        <td id="desc" onclick="window.open('<?php echo site_url('institution_selection/showDesc/' . $row->institution_id) ?>','Ratting','width=550,height=170,0,status=0,location=0,left=200px, top=300px'); this.style.color='blue'; this.style.textDecoration='none';"
                            onmouseover="this.style.color='grey'; this.style.textDecoration='underline';"
                            onmouseout="this.style.textDecoration='none';"><?php echo substr($row->institution_description, 0, 45);
                    echo "..." ?></td>
                        <td>Click Here</td>
                    </tr>
<?php } ?>
            </tbody>
        </table>
        <center>
            <input type="button" id="checkAll" name="checkAll" value="Mark All/Un-mark All">
            <input type="button" value="Select Institution" name="selectInsConfirm" id="selectInsConfirm">s
        </center>
    </form>
</div>
<?php } ?>
<span style="visibility:hidden;">.</span>